<?php
$array = array(
	
	'DB_TYPE'					=>	'mysql',
	'DB_HOST'					=>	'hdm-108.hichina.com',//192.168.1.10 127.0.0.1
	'DB_NAME'					=>	'hdm1080149_db',
	'DB_USER'					=>	'hdm1080149',
	'DB_PWD'					=>	'12345678',
	'DB_PORT'					=>	'3306',
	'DB_PREFIX'					=>	'et_',
		
	'APP_GROUP_LIST'            => 'MMS,OMS,BDC,PMS,PAM,RMS,FIL',
	'DEFAULT_GROUP'             => 'MMS',
	'APP_AUTOLOAD_PATH'         => '@.TagLib',
	'APP_GROUP_MODE'            =>  1,
	'PAGE_NUMS'                 =>  10,//默认分页记录数
		
	//多国语言
	'LANG_SWITCH_ON' 			=> 	true,
	'DEFAULT_LANG' 				=> 	'zh-cn', // 默认语言
	'LANG_AUTO_DETECT' 			=> 	true,    // 自动侦测语言

	'REST_METHOD_LIST'           => 'get,post,put,delete', // 允许的请求类型列表
    'REST_DEFAULT_METHOD'        => 'json', // 默认请求类型
    'REST_CONTENT_TYPE_LIST'     => 'html,xml,json,rss', // REST允许请求的资源类型列表
    'REST_DEFAULT_TYPE'          => 'html', // 默认的资源类型
    'REST_OUTPUT_TYPE'           => array(  // REST允许输出的资源类型列表
            'xml'  => 'application/xml',
            'json' => 'application/json',
            'html' => 'text/html',
     ),
	
	"REALTIME_VALIDATE" => true, //sign过期时间标识
	"FAILURE_TIME"      => 5*60, //sign过期时间
	
	'APP_LIST' => array(
		"app_lvye_admin"    => '!a12312!@#',
		"app_lvye_hdmin"    => 'dadmin!@#',
		"app_lvye_member"   => 'a12312!@##!',
	),
	
	'APP_PERSSION' => array(
		"app_lvye_index" => array(
			"Index" => array(
				"index" => array("valid"=>1,"filter"=>""),		
			)	
		),
	
	),
		
	//优惠券类型
	'COUPON_TYPE' => array(
		'cash'         => '现金券',
		'discount'     => '折扣券',
		'fullcut'      => '满减券',
		'fullsend'     => '满送券',
		'fulldiscount' => '满折券',
		'credit'       => '积分券',
		'product'      => '实物券',
		'noship'       => '免运费券',
		'noorder'      => '免单券',
	),
		
	//优惠券获取场景
	'COUPON_SCENE' => array(
		'share'    => '用户分享',	
		'register' => '用户注册',	
		'order'    => '购物下单',	
		'receipt'  => '确认收货',	
		'comment'  => '订单评论',	
	),
		
	'DATA_ACCESS' => array(	
		"Order" => array("table"=>"OrderUserView","field"=>"tbl.addid|adminid"),
		"Bill"  => array("table"=>"BillUserView" ,"field"=>"tbl.addid|adminid"),
	),
	
	//优惠券优惠形式
	'COUPON_CALAC' => array(
		'discount'     => array("isarray"=>false,'discount'=>'折扣'),
		'cash'         => array("isarray"=>false,'cash'=>'抵现'),
		'fullcut'      => array("isarray"=>true,'val'=>array('full','满','cut','减')),
		'fullsend'     => array("isarray"=>true,'val'=>array('full','满','send','送')),
		'fulldiscount' => array("isarray"=>true,'val'=>array('full','满','discount','折'))
	),
		
	//邮件设置
	'MAIL_TYPE'      => 'smtp',                // 发送类型
	'MAIL_HOST'	     => '203.98.175.182',      // 邮箱SMTP服务器
	'MAIL_LOGINNAME' => 'edm',                 // 邮箱登录帐号
	'MAIL_PASSWORD'  => 'saKB6us4',            // 邮箱密码
	'MAIL_SEND_EMAIL'=> 'info@etackle.com.hk', // 发送地址
	'MAIL_SEND_NAME' => '系统管理员',             // 发送地址
	'MAIL_CHARSET'   => 'UTF-8',               // 编码
	'MAIL_AUTH'      => true,                  // 邮箱认证
	'MAIL_HTML'      => true,
		
	//短信设置  http://utf8.sms.webchinese.cn/
	//http://sms.webchinese.cn/web_api/?Uid=fbi020&Key=de647d966502507f8659&smsMob=13823386486&smsText=验证码和订单详细
	//http://dxhttp.c123.cn/tx/?uid=500792370001&pwd=a042efb4666392a3ab63de7bf06360cf&mobile=13823386486&content=验证码和订单详细&encode=utf8
	'SMS_URL'        => "http://sms.webchinese.cn/web_api/?", 
	'SMS_APP_ID'     => "fbi020", //lvye0730
	'SMS_APP_KEY'    => "de647d966502507f8659",//f39e514d4cc391f8a1ae
	'SMS_MOBILE'     => '13823386486',
	'SMS_MEMBER_MAX' => 7,
);

$config = require ABS_PATH.'Core/Common/config.php';
return array_merge($config,$array);
?>